package com.iwords.android;

public class WordsLibStatus {
	/**从KnownLevel.Known到KnownLevel.NONE的单词数，待复习部分。*/
	private final int[] greenCounts = new int[7];
	/**从KnownLevel.Known到KnownLevel.NONE的单词数，未到复习时间部分。*/
	private final int[] redCounts = new int[7];
	
	public int[] getGreenCounts() {
		return greenCounts;
	}
	
	public int[] getRedCounts() {
		return redCounts;
	}
	public int getGreenCount(int index) {
		return greenCounts[index];
	}
	
	public int getRedCount(int index) {
		return redCounts[index];
	}
	
	public int getGreenCount(KnownLevel level){
		return greenCounts[level.getValue()];
	}
	
	public int getRedCount(KnownLevel level){
		return redCounts[level.getValue()];
	}
	
	public int increaseGreen(int index){
		greenCounts[index] = greenCounts[index]+1;
		return greenCounts[index];
	}
	
	public int increaseRed(int index){
		redCounts[index] = redCounts[index]+1;
		return redCounts[index];
	}
	
	public int decreaseGreen(int index){
		greenCounts[index] = greenCounts[index]-1;
		return greenCounts[index];
	}
	
	public int decreaseRed(int index){
		redCounts[index] = redCounts[index]-1;
		return redCounts[index];
	}
}
